package com.bensoft.minesweeper.gui;

import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JWindow;

/**
 *
 * @author Ben Wolsieffer
 */
public class CheatWindow extends JWindow {

    private boolean white;

    public CheatWindow() {
        super();
        setSize(1, 1);
        setLocation(0, 0);
        setAlwaysOnTop(true);
    }

    @Override
    public void paint(Graphics g) {
        if (white) {
            g.setColor(Color.WHITE);
        } else {
            g.setColor(Color.BLACK);
        }
        g.drawRect(0, 0, 1, 1);
    }

    public void setWhite(boolean white) {
        this.white = white;
        repaint();
    }
}
